import request from '@/utils/request'

// 查询词汇列表
export function listVocabularySource(query) {
  return request({
    url: '/vocabulary-source/list',
    method: 'get',
    params: query
  })
}

// 查询词汇详细
export function getVocabularySource(id) {
  return request({
    url: '/vocabulary-source/' + id,
    method: 'get'
  })
}

// 新增词汇
export function addVocabularySource(data) {
  return request({
    url: '/vocabulary-source',
    method: 'post',
    data: data
  })
}

// 修改词汇
export function updateVocabularySource(data) {
  return request({
    url: '/vocabulary-source',
    method: 'put',
    data: data
  })
}

// 删除词汇
export function delVocabularySource(id) {
  return request({
    url: '/vocabulary-source/' + id,
    method: 'delete'
  })
}
